package jwcb.javapjframework.ms_template.service.controller;

import jwcb.javapjframework.ms_template.service.service.RedisBasicTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.*;
import java.util.concurrent.TimeUnit;

@RestController
@RequestMapping("/test/redis/basic")
public class RedisBasicTestController {

    @Autowired
    private RedisBasicTestService redisBasicTestService;

    @GetMapping("/testOperations")
    public String testBasicOperations() {
        return redisBasicTestService.testRedisBasicOperations();
    }
}